package com.example.myapplication;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class MyBroadcastReceiver1 extends BroadcastReceiver {

    private final String TAG = "MyBroadcastReceiver1";

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d(TAG, "接收到了广播");
        Log.d(TAG, "Action:" + intent.getAction());
        Log.d(TAG, "URI:" + intent.toUri(Intent.URI_INTENT_SCHEME));
        Log.d(TAG, "INFO:" + intent.getStringExtra("info"));
    }

}
